import {baseAjax} from '../baseAjax'

// 获取消息分页
export function getNoticePagging (data, successHandle, failHandle) {
  baseAjax('/ent/msg/paging', data, 'post', successHandle, failHandle)
}

// 获取消息列表
export function getNoticeList (data, successHandle, failHandle) {
  baseAjax('/ent/msg/list', data, 'post', successHandle, failHandle)
}

// 未读消息数量
export function getUnreadAmount (data, successHandle, failHandle) {
  baseAjax('/ent/msg/unread/count', data, 'get', successHandle, failHandle)
}

export const noticeType = [
  {name: '全部', id: ''}, {name: '跟进超时', id: 1}, {name: '区域名单变更', id: 2}
]
